package com.zmn.oms.model.mongo.distribute;

import com.zmn.oms.manager.utils.MongodbConsts;
import com.zmn.oms.model.vo.work.DistributeVO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName PlaceAnOrderDistribute
 * @description: 下单预派单
 * @author: wangyanci
 * @create: 2021-12-17 17:10
 * @Version 1.0
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(collection = MongodbConsts.OMS_PLACE_AN_ORDER_PRE_DISTRIBUTE)
public class PlaceAnOrderPreDistribute implements Serializable {

    /**
     * 工单Id
     */
    @Indexed
    private Long workId;

    private Long orderId;

    /**
     * 预派单记录id
     */
    private Long preDistributeId;

    // 派单vo
    private DistributeVO distributeVO;

    /**
     * 创建时间
     */
    private Date createTime;

}